package com.huayi.order.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HomeController {
    private static Logger log = LoggerFactory.getLogger(HomeController.class);


    @RequestMapping("/")
    public String home(Model model) throws Exception {
        log.info("访问首页");
        model.addAttribute("menuId", "home");
        return "home";
    }
}
